const express = require('./express');

const app = express();

app.get('/hc/:name/:age', (req, res, next) => {
    console.log(req.params);
    res.end('ok');
})


app.use('/', (req, res, next) => {
    console.log('use');
    next();
})
app.use('/userApp', (req, res, next) => {
    console.log('use2');
    next();
})
app.get('/user', (req, res) => {
    res.end('user~~~~~~~~~~');
})

app.listen(3000, () => {
    console.log("server is listen at 3000");
})